﻿
@{
    Layout = "~/Views/Shared/_LayoutForWeb.cshtml";
}

<link href="~/Content/css/scanTemplate.css" rel="stylesheet" />

<div class="echartTitle">测试Echart和adminLET</div>
<div id="login_tendency_div" class="analysisBox">
    <div id="login_tendency" class="analysisContainer"></div>
</div>

<script type="text/javascript">
    var login_tendency = echarts.init(document.getElementById('login_tendency'));

    $(function () {
        loginTendency();
    })

    function loginTendency() {

        $.post("/TestAdminLET/GetEchartBar", {}, function (result) {

            var body = result.Body;
            var nameList = body.NameList;
            var legendList = body.LegendList;
            var dataList = body.DataList;
            var title = "";

            var login_tendency_option =  getBarOption(title, legendList, nameList, dataList, true, true, true);

            login_tendency.setOption(login_tendency_option);
        }) 
    }
</script>

